import { createRouter, createWebHistory } from 'vue-router'
import Home from "@/views/Home/HomeApp.vue"
import User from "@/views/User/UserApp";
import Category from "@/views/Category/Category.vue";
import Order from "@/views/Order/Order";
import FenleiApp from "@/views/Home/FenleiApp.vue";
import BangdanApp from "@/views/Home/BangdanApp.vue";
import ShudanApp from "@/views/Home/ShudanApp.vue";
import HuiyuanAPP from "@/views/Home/HuiyuanApp.vue"
import LoginApp from "@/views/Home/LoginApp.vue";
import MianfeiApp from "@/views/Home/MianfeiApp";
import XiangQingApp from "@/views/Home/XiangQingApp";
const routes = [
  {
    path: '/user',
    name: 'user',
    component: User
  },
  {
    path: '/order',
    name: 'order',
    component: Order
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path: '/category',
    name: 'category',
    component: Category
  },
  {
    path: '/fenlei',
    name: 'fenlei',
    component: FenleiApp
  },
  {
    path: '/bangdan',
    name: 'bangdan',
    component: BangdanApp
  },
  {
    path: '/shudan',
    name: 'shudan',
    component: ShudanApp
  },
  {
    path: '/mianfei',
    name: 'mianfei',
    component: MianfeiApp
  },
  {
    path: '/login',
    name: 'login',
    component: LoginApp
  },
  {
    path: '/huiyuan',
    name: 'huiyuan',
    component: HuiyuanAPP
  },
  {
    path: '/mianfei',
    name: 'mianfei',
    component: MianfeiApp
  },
  {
    path: '/xiangqing',
    name: 'xiangqing',
    component: XiangQingApp
  },

  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
